package com.koron.order.experiment.mapper;

import com.koron.order.experiment.bean.po.ExperimentEquipmentPo;
import com.koron.order.experiment.bean.vo.ExperimentEquipmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (ExperimentEquipment)表数据库访问层
 *
 * @author zhouj
 * @since 2021-10-08 16:42:58
 */
public interface ExperimentEquipmentMapper {

    int insertOrUpdate(ExperimentEquipmentPo experimentEquipment);

    int insertOrUpdateBatch(List<ExperimentEquipmentPo> experimentEquipment);

    int insert(ExperimentEquipmentPo experimentEquipment);

    int insertBatch(@Param("list") List<ExperimentEquipmentPo> experimentEquipments);

    int update(ExperimentEquipmentPo experimentEquipment);

    int deleteById(String id);

    ExperimentEquipmentPo queryById(String id);

    List<ExperimentEquipmentPo> queryList(ExperimentEquipmentPo experimentEquipment);

    List<ExperimentEquipmentVo> queryByBusinessId(@Param("experimentId") String orderId,@Param("experimentEquipId") String experimentEquipId);

    int deleteByOrderId(@Param("experimentId") String experimentId);
}